﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Data.Objects.DataClasses;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for DepartmentTest and is intended
    ///to contain all DepartmentTest Unit Tests
    ///</summary>
    [TestClass()]
    public class DepartmentTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Department Constructor
        ///</summary>
        [TestMethod()]
        public void DepartmentConstructorTest()
        {
            Department target = new Department();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for CreateDepartment
        ///</summary>
        [TestMethod()]
        public void CreateDepartmentTest()
        {
            int departmentID = 0; // TODO: Initialize to an appropriate value
            string departmentName = string.Empty; // TODO: Initialize to an appropriate value
            short priority = 0; // TODO: Initialize to an appropriate value
            short retryTime = 0; // TODO: Initialize to an appropriate value
            int limit = 0; // TODO: Initialize to an appropriate value
            Department expected = null; // TODO: Initialize to an appropriate value
            Department actual;
            actual = Department.CreateDepartment(departmentID, departmentName, priority, retryTime, limit);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DepartmentID
        ///</summary>
        [TestMethod()]
        public void DepartmentIDTest()
        {
            Department target = new Department(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.DepartmentID = expected;
            actual = target.DepartmentID;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DepartmentName
        ///</summary>
        [TestMethod()]
        public void DepartmentNameTest()
        {
            Department target = new Department(); // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;
            target.DepartmentName = expected;
            actual = target.DepartmentName;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Limit
        ///</summary>
        [TestMethod()]
        public void LimitTest()
        {
            Department target = new Department(); // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            target.Limit = expected;
            actual = target.Limit;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Priority
        ///</summary>
        [TestMethod()]
        public void PriorityTest()
        {
            Department target = new Department(); // TODO: Initialize to an appropriate value
            short expected = 0; // TODO: Initialize to an appropriate value
            short actual;
            target.Priority = expected;
            actual = target.Priority;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for RetryTime
        ///</summary>
        [TestMethod()]
        public void RetryTimeTest()
        {
            Department target = new Department(); // TODO: Initialize to an appropriate value
            short expected = 0; // TODO: Initialize to an appropriate value
            short actual;
            target.RetryTime = expected;
            actual = target.RetryTime;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for User
        ///</summary>
        [TestMethod()]
        public void UserTest()
        {
            Department target = new Department(); // TODO: Initialize to an appropriate value
            EntityCollection<User> expected = null; // TODO: Initialize to an appropriate value
            EntityCollection<User> actual;
            target.User = expected;
            actual = target.User;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
